import {DFT_ICONS} from "@jzl/icons";

export default {
    component: 'jzlText',
    icon: DFT_ICONS.text,
    name: '文本',

    ele_style: {
        _name: '文本',
        _fix: "all",
        _render: '_ele',
        _node: 'text',
        _value: 'model',
        _ss: {},
        _sh: {},
        _rh: false
    },
    setting: {
        sticky: false
    },
    vars: [{
        prop: "model",
        type: "string",
        default: "点击设置标签内容",
        force: true,
        initType: "static",
        // initPath: "",
        // varName: "",    // page var name
        // emptyDefault: true,
        // api: null,
        // mbCode: null,
        // formCode: null,
        // viewCode: null,
        // itemName: null,
        // apiFilter: {},
        // mapiFilter: {}
    }],
    data_schema: {       // 组件需要的字段
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "数据",
        "description": "text description",
        "type": "object",
        "properties": {
            "text": {
                "title": "文本",
                "type": "string",
                "ui:options": {
                    'widget': 'TinymceEditor'
                }
            }
        }
    },
    data_type: 'static',    // static | dync
    data_dync: {
        form_code: '',
        form_view_code: '',
        report_code: '',
        url: ''
    },
    data_static: {
        text: '点击设置标签内容'
    }
}
